<?php

namespace app\index\model;

use think\Model;

class OptionModel extends Model
{
    protected $table = 'newzs_option';




    /**
     * @param $comid
     * @param $num
     * @return mixed
     */
    public static function get_pk_by_num($comid, $num){
        return self::where(['comid'=>$comid,'num'=>$num])->value('id');
    }



}

